package com.zmj.mobile.mapstruct;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmj.mobile.dto.TechPurMainInsertDTO;
import com.zmj.mobile.dto.TechPurMainUpdateDTO;
import com.zmj.mobile.entity.TechPurMainEntity;
import com.zmj.mobile.vo.TechPurMainVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface TechPurMainMapStruct {

    TechPurMainMapStruct INSTANCE = Mappers.getMapper(TechPurMainMapStruct.class);

    TechPurMainEntity toTechPurMain(TechPurMainInsertDTO insertDTO);

    TechPurMainEntity toTechPurMain(TechPurMainUpdateDTO updateDTO);

    TechPurMainVO toTechPurMainVO(TechPurMainEntity entity);

    Page<TechPurMainVO> convertPage(IPage<TechPurMainEntity> page);
}